package com.leadingsoft.pwxk.enums;

public enum SheetEnum {
	LT(
			0,
			"炼铁"),
	LG(
			1,
			"炼钢"),
	GYY(
			2,
			"钢延压加工"),
	TZ(
			3,
			"屠宰及肉类加工"),
	OT(
			4,
			"其他农副食品加工"),
	SY(
			5,
			"精炼石油产品制造"),
	TC(
			6,
			"陶瓷制品制造"),
	JS(
			7,
			"常用有色金属冶炼");
	private int order;
	private String desc;

	SheetEnum(int order, String desc) {
		this.order = order;
		this.desc = desc;
	}

	public int getOrder() {
		return order;
	}

	public void setOrder(int order) {
		this.order = order;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public static SheetEnum getByOrder(int i) {
		for (SheetEnum e : SheetEnum.values()) {
			if (e.getOrder() == i) {
				return e;
			}
		}
		return null;
	}
}
